﻿Imports CintieFramework
Imports Stardust.Core.Extensibility
Imports System.Runtime.CompilerServices

<HideModuleName()> _
Module Helpers

    ''' <summary>
    ''' Unpackage an extension file an installs it on the ScriptsDir
    ''' </summary>
    ''' <param name="file">(this file) The file to unpackage</param>
    ''' <param name="ProgressEvent">An event that ocurs when unpackage progress changes</param>
    ''' <remarks></remarks>
    <Extension()> _
    Public Sub Unpackage(ByVal file As IO.FileInfo, ByVal ProgressEvent As [Delegate])
        Dim Pack As New Packaging

        Pack.UnpackageExtension(file.FullName, ProgressEvent)
    End Sub

End Module
